# coding=utf-8
# 代码文件：chapter1/ch1.11.2.py

name = 'Mary'
age = 18
s = '她的年龄是{0}岁。'.format(age)
print(s)
s = '{0}芳龄是{1}岁。'.format(name, age)
print(s)
s = '{1}芳龄是{0}岁。'.format(age, name)
print(s)
s = '{n}芳龄是{a}岁。'.format(n=name, a=age)
print(s)
